//这里应该写下备注

//面罩
const mask = document.querySelector('.mask');
const menuBtn = document.querySelector('#side-menu-toggle');
const sideDrawer = document.querySelector('.mobile-nav');

mask.addEventListener('click', maskClickHandler, false);
menuBtn.addEventListener('click', menuToggleClickHandler, false);

function maskClickHandler(){
  mask.style.display = 'none';
  sideDrawer.classList.remove('open');
}

function menuToggleClickHandler(){
  mask.style.display = 'block';
  sideDrawer.classList.add('open');
}
